package com.ruoyi.project.er.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.er.domain.PaeaErPoint;
import com.ruoyi.project.er.model.PaeaErPointModel;

import java.util.List;

/**
 * 风险点定义Mapper接口
 *
 * @author ruoyi
 * @date 2020-03-13
 */
public interface PaeaErPointMapper extends BaseMapper<PaeaErPoint>
{
    /**
     * 查询风险点定义
     *
     * @param id 风险点定义ID
     * @return 风险点定义
     */
    public PaeaErPoint selectPaeaErPointById(String id);

    /**
     * 查询风险点定义列表
     *
     * @param paeaErPoint 风险点定义
     * @return 风险点定义集合
     */
    public List<PaeaErPoint> selectPaeaErPointList(PaeaErPoint paeaErPoint);


    /**
     * 新增风险点定义
     *
     * @param paeaErPoint 风险点定义
     * @return 结果
     */
    public int insertPaeaErPoint(PaeaErPoint paeaErPoint);

    /**
     * 修改风险点定义
     *
     * @param paeaErPoint 风险点定义
     * @return 结果
     */
    public int updatePaeaErPoint(PaeaErPoint paeaErPoint);

    /**
     * 删除风险点定义
     *
     * @param id 风险点定义ID
     * @return 结果
     */
    public int deletePaeaErPointById(String id);

    /**
     * 批量删除风险点定义
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaErPointByIds(String[] ids);

    /**
     * 查询风险点By风险类型
     * @param model
     * @return 结果集
     */
    public List<PaeaErPoint> selectPaeaErPointsByAuTypeId(PaeaErPointModel model);
    public List<PaeaErPoint> selectPaeaErPointsByErrSource(PaeaErPointModel model);

    public List<PaeaErPoint> selectPaeaErPointsByErrId(String errId);
}
